package org.example.cart.api;

import org.example.core.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;

/**
 * @author 小杰_cc
 * @version 1.0
 */
@FeignClient("warehouse-service")
public interface WareHouseService {

    @GetMapping("/wms/front/sku/hasStocks")
    R<Map<Long, Integer>> queryStocks(@RequestParam("skuIds") List<Long> skuIds);
}
